<?php
/**
 * Created by PhpStorm.
 * User: Thans
 * Date: 2018/5/21
 * Time: 下午7:42
 */

namespace app\admin\controller\view;


use app\common\controller\Admin;
use app\user\facade\User;


class PublicController extends Admin
{
    public function initialize()
    {

    }

    public function login()
    {
        return $this->fetch();
    }

    public function logout()
    {
        User::logout();
        $this->redirect(url('/admin/login'));
    }
}